layui.use(top.layuiuse,
    function () {
        var layer = layui.layer;
        var $ = layui.jquery;
        var upload = layui.upload;
        var index = layui.index;
        var formDesigner = layui.formDesigner;
        var form = layui.form;
        var render;
        var localStorageLayuiForm = [];
        var localStorageLayuiFormJson = window.localStorage.getItem('layui_form_json');
        if (localStorageLayuiFormJson !== undefined) {
            localStorageLayuiForm = JSON.parse(localStorageLayuiFormJson);
            render = formDesigner.render({
                elem: '#formDesignerView',
                data: localStorageLayuiForm,
                viewOrDesign: true
                //formData: {"textarea_1":"123","input_2":"123","password_3":"123"}
            });
        }
    }
)